package com.cskaoyan.bean.bo;

import com.cskaoyan.bean.pojo.MarketGoods;
import com.cskaoyan.bean.pojo.MarketGoodsAttribute;
import com.cskaoyan.bean.pojo.MarketGoodsProduct;
import com.cskaoyan.bean.pojo.MarketGoodsSpecification;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 商品管理-商品上架
 * 创建日期: 2022/04/08 09:46
 *
 * @author HanWeiqi
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsCreateAndUpdateBO {
    @Valid
    MarketGoods goods;

    @Valid
    List<MarketGoodsSpecification> specifications;

    @Valid
    List<MarketGoodsProduct> products;

    @Valid
    List<MarketGoodsAttribute>  attributes;
}
